home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / client / ui / chatHud.gui < prev    next >
Encoding:
Text File  |  2005-11-23  |  4.5 KB  |  161 lines

  1. //-----------------------------------------------------------------------------
  2. // Chat edit window
  3. //-----------------------------------------------------------------------------
  4.  
  5. new GuiControl(MessageHud)
  6. {
  7.    profile = "GuiDefaultProfile";
  8.    horizSizing = "width";
  9.    vertSizing = "height";
  10.    position = "0 0";
  11.    extent = "640 480";
  12.    minExtent = "8 8";
  13.    visible = "0";
  14.    noCursor = true;
  15.  
  16.    new GuiBitmapBorderCtrl(MessageHud_Frame) {
  17.       profile = "ChatHudBorderProfile";
  18.       horizSizing = "right";
  19.       vertSizing = "bottom";
  20.       position = "120 375";
  21.       extent = "400 40";
  22.       minExtent = "8 8";
  23.       visible = "1";
  24.  
  25.       new GuiBitmapCtrl() {
  26.          profile = "GuiDefaultProfile";
  27.          horizSizing = "width";
  28.          vertSizing = "height";
  29.          position = "8 8";
  30.          extent = "384 24";
  31.          minExtent = "8 8";
  32.          visible = "1";
  33.          helpTag = "0";
  34.          bitmap = "./hudfill";
  35.          wrap = "0";
  36.       };
  37.  
  38.       new GuiTextCtrl(MessageHud_Text)
  39.       {
  40.          profile = "ChatHudTextProfile";
  41.          horizSizing = "right";
  42.          vertSizing = "bottom";
  43.          position = "14 12";
  44.          extent = "10 22";
  45.          minExtent = "8 8";
  46.          visible = "1";
  47.       };
  48.  
  49.       new GuiTextEditCtrl(MessageHud_Edit)
  50.       {
  51.          profile = "ChatHudEditProfile";
  52.          horizSizing = "right";
  53.          vertSizing = "bottom";
  54.          position = "0 13";
  55.          extent = "10 22";
  56.          minExtent = "8 8";
  57.          visible = "1";
  58.          altCommand = "$ThisControl.eval();";
  59.          escapeCommand = "MessageHud_Edit.onEscape();";
  60.          historySize = "5";
  61.          maxLength = "120";
  62.       };
  63.    };
  64. };
  65. //--- OBJECT WRITE BEGIN ---
  66. new GuiControl(MainChatHud) {
  67.    profile = "GuiModelessDialogProfile";
  68.    horizSizing = "width";
  69.    vertSizing = "height";
  70.    position = "0 0";
  71.    extent = "640 480";
  72.    minExtent = "8 8";
  73.    visible = "1";
  74.    helpTag = "0";
  75.       noCursor = "1";
  76.  
  77.    new GuiControl() {
  78.       profile = "GuiDefaultProfile";
  79.       horizSizing = "relative";
  80.       vertSizing = "bottom";
  81.       position = "0 0";
  82.       extent = "400 300";
  83.       minExtent = "8 8";
  84.       visible = "1";
  85.       helpTag = "0";
  86.  
  87.       new GuiBitmapBorderCtrl(OuterChatHud) {
  88.          profile = "ChatHudBorderProfile";
  89.          horizSizing = "width";
  90.          vertSizing = "bottom";
  91.          position = "0 0";
  92.          extent = "272 88";
  93.          minExtent = "8 8";
  94.          visible = "1";
  95.          helpTag = "0";
  96.             useVariable = "0";
  97.             tile = "0";
  98.  
  99.          new GuiBitmapCtrl() {
  100.             profile = "GuiDefaultProfile";
  101.             horizSizing = "width";
  102.             vertSizing = "height";
  103.             position = "8 8";
  104.             extent = "256 72";
  105.             minExtent = "8 8";
  106.             visible = "1";
  107.             helpTag = "0";
  108.             bitmap = "./hudfill";
  109.             wrap = "0";
  110.          };
  111.  
  112.          new GuiButtonCtrl(chatPageDown) {
  113.             profile = "GuiButtonProfile";
  114.             horizSizing = "left";
  115.             vertSizing = "top";
  116.             position = "220 58";
  117.             extent = "36 14";
  118.             minExtent = "8 8";
  119.             visible = "0";
  120.             helpTag = "0";
  121.             text = "Dwn";
  122.             groupNum = "-1";
  123.             buttonType = "PushButton";
  124.          };
  125.          new GuiScrollCtrl(ChatScrollHud) {
  126.             profile = "ChatHudScrollProfile";
  127.             horizSizing = "width";
  128.             vertSizing = "height";
  129.             position = "8 8";
  130.             extent = "256 72";
  131.             minExtent = "8 8";
  132.             visible = "1";
  133.             helpTag = "0";
  134.             willFirstRespond = "1";
  135.             hScrollBar = "alwaysOff";
  136.             vScrollBar = "alwaysOff";
  137.             constantThumbHeight = "0";
  138.             childMargin = "0 0";
  139.  
  140.             new GuiMessageVectorCtrl(ChatHud) {
  141.                profile = "ChatHudMessageProfile";
  142.                horizSizing = "width";
  143.                vertSizing = "height";
  144.                position = "1 1";
  145.                extent = "252 16";
  146.                minExtent = "8 8";
  147.                visible = "1";
  148.                helpTag = "0";
  149.                lineSpacing = "0";
  150.                lineContinuedIndex = "10";
  151.                allowedMatches[0] = "http";
  152.                allowedMatches[1] = "tgeserver";
  153.                matchColor = "0 0 255 255";
  154.                maxColorIndex = "5";
  155.             };
  156.          };
  157.       };
  158.    };
  159. };
  160. //--- OBJECT WRITE END ---
  161.